CC = gcc
# CC = aarch64-linux-gnu-gcc
TARGET = ups
OBJS = serial.o ups.o 
INCLUDE = 
LDFLAGS = -lpthread

$(TARGET):$(OBJS)
	$(CC) $(OBJS) -o $(TARGET) ${LDFLAGS}  
 %.o:%.c
	$(CC) $(INCLUDE) -c $^ -o $@ 
 
 .PHONY:clean
 clean:
	rm *.o ups
